package com.youxuan.ssyx.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youxuan.ssyx.model.activity.ActivityInfo;
import com.youxuan.ssyx.model.activity.ActivityRule;
import com.youxuan.ssyx.model.activity.ActivitySku;
import feign.Param;

import java.util.List;

/**
 * <p>
 * 活动表 Mapper 接口
 * </p>
 *
 * @author LiuYang
 * @since 2023-10-27
 */
public interface ActivityInfoMapper extends BaseMapper<ActivityInfo> {

    List<Long> selectSkuIdListExist(@Param("skuIdList") List<Long> skuIdList);

    List<ActivityRule> findActivityRule(Long skuId);

    List<ActivitySku> selectCartActivity(List<Long> skuIdList);
}
